from rest_framework.generics import ListAPIView
from recruit.serializers.hotenterprise_serializer import *


class HotEnterpriseModelView(ListAPIView):
    """热门企业 接口"""
    queryset = Enterprise.objects.all().order_by('-visits')[:7]
    serializer_class = HotEnterSerializer